import enum


class IntervalType(enum.Enum):
    HOUR = 'hour'
    DAY = 'day'
    WEEK = 'week'
    MONTH = 'month'
    ALL_TIME = 'all_time'


class ResponseStatus(enum.Enum):
    OK = 0
    FAIL = 1
    TOKEN_VOIDED = 3


INTERVAL_TYPE_MAPPER = {
    'hour': IntervalType.HOUR,
    'day': IntervalType.DAY,
    'week': IntervalType.WEEK,
    'month': IntervalType.MONTH
}